
#ifndef FIXEDRESTRAINTWIDGET_H
#define FIXEDRESTRAINTWIDGET_H

#include <BButton>
#include <BComboBox>
#include <BRealSpinBox>
#include <BCheckBox>
#include <BLineEdit>
#include <BFixedRestraint>

using namespace BWE;

class FixedRestraintPanel : public BWidget
{
	BOBJECT(FixedRestraintPanel);
public:
	FixedRestraintPanel(BWidget* parent = 0);
	~FixedRestraintPanel();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);

	void slotPositionAEditFinished(BObject* object, const BValue& value);
	void slotPositionBEditFinished(BObject* object, const BValue& value);
	void slotAngularEditFinished(BObject* object, const BValue& value);

private:
	BFixedRestraint*		_fixedRestraint;

	BLineEdit*				_positionAEdit;
	BLineEdit*				_positionBEdit;

	BRealSpinBox*			_rotateXSpinBox;
	BRealSpinBox*			_rotateYSpinBox;
	BRealSpinBox*			_rotateZSpinBox;

};

#endif
